﻿@page "/"
@using System.ComponentModel.DataAnnotations
<ValidateForm Model="Model" OnValidSubmit="Submit" >
    <div class="row g-3">        
        
        <div class="col-12">
            @*<BootstrapInput @bind-Value="Model.V"></BootstrapInput>*@
            <BlazorApp3.Components.MyInput @bind-Value="Model.V"></BlazorApp3.Components.MyInput>
        </div>
       
        <div class="col-12">
            <Button ButtonType="@ButtonType.Submit" Text="提交" IsAsync="true"></Button>
        </div>
    </div>
</ValidateForm>
@code{
    private Foo Model = new Foo();
    protected async Task Submit(EditContext editContext)
    {
    }
    class Foo
    {
        [Required]
        public string V{  get;  set; }
     }
}
